<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes animalate{
            0%{
                width: 50px;
                height: 100px;
                background-color:red;
            }
            50%{
                width: 100px;
                height: 100px;
                background-color: yellow;
            }
            100%{
                width: 200px;
                height: 100px;
                background-color: green;
            }
        }
        div{
            width: 100px;
            height: 100px;
            background-color: red;
            animation: animalate 2s infinite;
        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>